using System;
using Sce.Pss.Core.Input;

namespace KryschenApp
{
	public static class GamePadErweiterung
	{
		public static bool IstLgedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.L);
		}
		public static bool IstRgedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.R);
		}
		public static bool IstStartgedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.Start);
		}
		public static bool IstDigitalNachObenGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Up);
		}

		public static bool IstDigitalNachUntenGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Down);
		}

		public static bool IstDigitalNachLinksGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Left);
		}

		public static bool IstDigitalNachRechtsGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Right);
		}
		public static bool IstChrossGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.Cross);
		}
		public static bool IstCircleGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.Circle);
		}
		public static bool IstSquareGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.Square);
		}
		public static bool IstTriangleGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.Triangle);
		}	
		
	}
}

